package com.xiaoluo.lottery.common.weixin.hb;


import com.xiaoluo.lottery.common.weixin.hb.beans.HbInfoReq;
import com.xiaoluo.lottery.common.weixin.hb.beans.HbInfoRes;
import com.xiaoluo.lottery.common.weixin.hb.beans.RedPackReq;
import com.xiaoluo.lottery.common.weixin.hb.beans.RedPackRes;
import com.xiaoluo.lottery.common.weixin.pay.beans.*;
import retrofit.http.Body;
import retrofit.http.POST;

/**
 * Project : lottery
 * Package : main.java.com.xiaoluo.lottery.common.weixin.pay
 * Created by Willian.
 * Date  : 2016/4/6 16:45.
 */
public interface IWeiXinHb {


    /**
     * 发送红包
     * @param req
     * @return
     * @throws Exception
     * https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack
     */
    @POST("/mmpaymkttransfers/sendredpack")
    RedPackRes sendredpack(@Body RedPackReq req) throws Exception;

    /**
     * 查询订单
     * @param req
     * @return
     * @throws Exception
     * https://api.mch.weixin.qq.com/mmpaymkttransfers/gethbinfo
     */
    @POST("/mmpaymkttransfers/gethbinfo")
    HbInfoRes gethbinfo(@Body HbInfoReq req) throws Exception;


}
